const {createProxyMiddleware} = require("http-proxy-middleware");
const { env } = require("process");

module.exports = function(app) {
    console.log("come to proxy");
    app.use(
        "/wxproxy",
        createProxyMiddleware({
            target:"http://localhost:10000/",
            changeOrigin:true,
    }));
    app.use("/apiclear_quota",createProxyMiddleware({
        target:"https://api.weixin.qq.com/cgi-bin/clear_quota/",
        changeOrigin:true
    }));
}
